package com.woniuxy.receiver;

import com.woniuxy.entity.Product;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @Author: 曾令忠
 * @Description:
 * @Date: 2020/7/6 0006-上午 11:34
 */
@Component
public class UserReceiver {
    @RabbitListener(queues = "rpc_queue_b")
    public void received(Product product){
        System.out.println("接收到商品："+product);
        //websocket 推送 session
        //response
    }
}
